home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
util
/
moni
/
Scout-src.lha
/
source
/
scout_defs.h
< prev
next >
Wrap
C/C++ Source or Header
|
2002-09-16
|
3KB
|
82 lines
/**
* Scout - The Amiga System Monitor
*
*------------------------------------------------------------------
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* You must not use this source code to gain profit of any kind!
*
*------------------------------------------------------------------
*
* @author Andreas Gelhausen
* @author Richard Körber <rkoerber@gmx.de>
*/
#ifndef SCOUT_DEFS_H
#define SCOUT_DEFS_H
/*************************************************************/
/* Compiler specific stuff */
/*************************************************************/
#define REG(x) register __ ## x
#define ASM __asm
#define SAVEDS __saveds
/*************************************************************/
/* User definitions */
/*************************************************************/
#define aprintf Printf
#define points2ram TypeOfMem
#define FIRSTSCREEN ((struct Screen *) (((struct IntuitionBase *)IntuitionBase)->FirstScreen))
#define DEVINFO ((struct DosInfo *) (BADDR(((struct DosLibrary *)DOSBase)->dl_Root->rn_Info)))
#define FILENAME_LENGTH 256
#define VERSION_LENGTH 16
#define ADDRESS_LENGTH 16
#define PATH_LENGTH 256
#define PATH_LENGTH_CHAR "256"
#define NODENAME_LENGTH 256
#define TEXT_LENGTH 256
#define TEXT_LENGTH_CHAR "256"
#define NODETYPE_LENGTH 16
#define NUMBER_LENGTH 16
#define TASK_STATE_LENGTH 16
#define TMP_STRING_LENGTH 1024
#define TS_FROZEN 0xff
#define PATTERN_LENGTH (PATH_LENGTH * 2 + 2)
#define ITERATE_LIST(list, type, node) for (node = (type)((struct List *)(list))->lh_Head; ((struct Node *)node)->ln_Succ; node = (type)((struct Node *)node)->ln_Succ)
#define ITERATE_LIST_REVERSE(list, type, node) for (node = (type)((struct List *)(list))->lh_TailPred; ((struct Node *)node)->ln_Pred; node = (type)((struct Node *)node)->ln_Pred)
#define ITERATE_CHANGING_LIST(list, type, node, temp) for (node = (type)((struct List *)(list))->lh_Head; temp = (type)((struct Node *)node)->ln_Succ; node = temp)
#define MakeID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
#define MyTextFrame TextFrame,MUIA_Background,MUII_TextBack
#define LabelA(label) TextObject,MUIA_Text_PreParse,"\033r",\
MUIA_Text_Contents,label,TextFrame,MUIA_FramePhantomHoriz,\
TRUE,End
#define LabelB(label) TextObject,MUIA_Text_PreParse,"\033r",\
MUIA_Text_Contents,label,TextFrame,MUIA_FramePhantomHoriz,\
TRUE,MUIA_Weight,0,MUIA_InnerLeft,0,MUIA_InnerRight,0,End
#endif /* SCOUT_DEFS_H */